import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

import uView from "uview-ui";
Vue.use(uView);
//左侧tarbar
import TabBar from './components/tabBar.vue'
Vue.component('TabBar', TabBar)
//信息发布tabs栏
import MssageSend from './components/messageSend.vue'
Vue.component('MssageSend', MssageSend)

//导入store实例
import store from './store'
//引入websocket文件
import wsRequest from './websocket/websocket.js'
// 3.创建websocket实例
const websocket = new wsRequest("ws://localhost:8110/websocket/12", 5000)
Vue.prototype.$socket = websocket

const app = new Vue({
  ...App,
  // 挂载实例
  store
})
app.$mount()


// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif